/**
 * Created by hzyangxin1 on 2016/11/11.
 */
angular.module('myApp', ['ngRoute'])
    .config(['$routeProvider',function($routeProvider){
    $routeProvider
        .when('/track-history',{
            template:'这是首页页面'
        })
        .when('/member',{
            controller:memberController,
            templateUrl:'/view/main/member/listMember'
        })
        .when('/track-intime',{
            template:'这是打印机页面'
        })
        .otherwise({
            redirectTo:'/'
        });
}]);

myApp.controller('memberController', function($scope,$route) {
    $scope.memberList = [{
        memberName: '孔子',
        gender: '男',
        age: 55,
        status:1
    },
        {
            memberName: '孟子',
            gender: '男',
            age: 55,
            status:2
        }];

    // $http.get("/member/getMemberList")
    //     .success(function (response) {$scope.memberList = response.data;});
    // getMamberList($scope, $http);
});